/**
 * runnable实现runnable类
 * @author 杨亚旭
 * @date 2019-01-29-9:57
 **/
public class RunnableImpl implements Runnable {
    int num=0;
    public RunnableImpl() {
    }

    public void run() {
        for (int i=0;i<5;i++){
            System.out.println("线程id:"+Thread.currentThread().getName()+",num值="+ num++);
        }
    }
}
